package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("车辆账单实体类")
public class CarBill {

    //车主姓名
    @ApiModelProperty("车主姓名")
    private String ownerName;
    //车牌号码
    @ApiModelProperty("车牌号码")
    private String carNumber;
    //车辆类型
    @ApiModelProperty("车辆类型")
    private String carType;
    //车辆型号
    @ApiModelProperty("车辆型号")
    private String carVersion;
    //车辆品牌
    @ApiModelProperty("车辆品牌")
    private String brand;
    //开始时间
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    //结束时间
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;
    //是否缴费
    @ApiModelProperty("是否缴费")
    private String payOrNot;
    //缴费凭证
    @ApiModelProperty("缴费凭证")
    private String payVoucher;
    //缴费金额
    @ApiModelProperty("缴费金额")
    private double paymentAmount;
    //车辆缴费记录
    @ApiModelProperty("缴费记录")
    private String record;

    public CarBill() {
    }

    public CarBill(String ownerName, String carNumber, String carType, String carVersion, String brand, Date startTime, Date endTime, String payOrNot, String payVoucher, double paymentAmount, String record) {
        this.ownerName = ownerName;
        this.carNumber = carNumber;
        this.carType = carType;
        this.carVersion = carVersion;
        this.brand = brand;
        this.startTime = startTime;
        this.endTime = endTime;
        this.payOrNot = payOrNot;
        this.payVoucher = payVoucher;
        this.paymentAmount = paymentAmount;
        this.record = record;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarVersion() {
        return carVersion;
    }

    public void setCarVersion(String carVersion) {
        this.carVersion = carVersion;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getPayOrNot() {
        return payOrNot;
    }

    public void setPayOrNot(String payOrNot) {
        this.payOrNot = payOrNot;
    }

    public String getPayVoucher() {
        return payVoucher;
    }

    public void setPayVoucher(String payVoucher) {
        this.payVoucher = payVoucher;
    }

    public double getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(double paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }
}
